package cn.broadsense.thrid.param;

import cn.broadsense.thrid.result.EvPlanTaskPageResult;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 分页查询任务
 *
 * @author pengxin
 * @date 2022-10-10 10:14
 */
@NoArgsConstructor
@Data
public class EvPlanTaskPageParam extends BasePageParam{



    private ConditionParam condition;
    private List<OrderParam> order;

    @Override
    public void checkParam() {

    }

    @Override
    public Class getResultClass() {
        return EvPlanTaskPageResult.class;
    }

    @NoArgsConstructor
    @Data
    public static class ConditionParam {
        private String planTaskName;
        private List<String> userIds;
        private Integer analysisType;
        private List<String> planTaskId;
        private Integer runningStatus;
        private List<String> algorithmIds;
        private Integer enableStatus;
        private String createAfterData;
        private String createBeforeData;
    }

    @NoArgsConstructor
    @Data
    public static class OrderParam {
        private String orderBy;
        private String order;
    }
}
